package com.gitee.cirnochat.user.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户隐私设置表
 * @TableName user_privacy_setting
 */
@TableName(value ="user_privacy_setting")
@Data
public class UserPrivacySetting implements Serializable {
    /**
     * 用户ID，逻辑外键
     */
    @TableId(value = "user_id")
    private Long userId;

    /**
     * 是否允许通过UUID搜索：0否 1是
     */
    @TableField(value = "searchable_by_uuid")
    private Boolean searchableByUuid;

    /**
     * 是否允许通过邮箱或昵称搜索：0否 1是
     */
    @TableField(value = "searchable_by_keyword")
    private Boolean searchableByKeyword;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}